home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 June / Macworld (1998-06).dmg / Inside Macworld / FLIGHTCHECK® v3.3 DEMO / FLIGHTCHECKÆ v3.3 DEMO.rsrc / TEXT_177_FlightScript™.txt < prev    next >
Text File  |  1998-03-27  |  1KB  |  39 lines

  1. FlightScript‚Ñ¢
  2. ¬©1993-1997 Markzware, Inc. All rights reserved.
  3.  
  4. FlightScript‚Ñ¢ provides several scripting functions which you can access via AppleScript¬Æ. While the subject of scripting itself is beyond the scope of this manual, the examples given below can be used to build your scripts:
  5.  
  6. Obtaining a List
  7. Executing the following script will return a list of colors
  8.  
  9.     tell application ‚ÄúFLIGHTCHECK¬Æ‚Äù
  10.         activate
  11.         get colorlist
  12.     end tell
  13.  
  14. Getting the Current View
  15. Executing the following script will return the current view for fonts:
  16.  
  17.     tell application ‚ÄúFLIGHTCHECK¬Æ‚Äù
  18.         activate
  19.         get font view
  20.     end tell
  21.  
  22. Getting the Number of Problems
  23. Executing the following script will return the number of problem images (using the currently selected view):
  24.  
  25.     tell application ‚ÄúFLIGHTCHECK¬Æ‚Äù
  26.         activate
  27.         get image problems
  28.     end tell
  29.  
  30. Conditional Scripts
  31. Executing the following conditional script will return a list of colors only if the current view is ‚ÄúSpot Colors‚Äù, set the current font view to All Fonts only if there are font problems, and will return a list of images only if there are image problems:
  32.  
  33.     tell application ‚ÄúFLIGHTCHECK¬Æ‚Äù
  34.         activate
  35.         if (get color view) = (‚ÄúSpot Colors‚Äù) then get color list
  36.         if (get font problems) > 0 then set font view to All Fonts
  37.         if (get image problems) > 0 then get image list
  38.     end tell
  39.